<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>测试模块间的相互依赖</title>
</head>
<body>
	<div ng-app="demo">
		<div ng-controller="myCtrl">
			<span>{{name}}</span>
		</div>
	</div>

	<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.7/angular.js"></script>
	<script>
		let myApp = angular.module("myApp", []);
		myApp.controller("myCtrl", ($scope) => {
			$scope.name = "Windea";
		});
		//创建另一个模块，并依赖缘由的模块
		let demo = angular.module("demo", ["myApp"]);
	</script>
</body>
</html>